# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Jeff Pohlmeyer <yetanothergeek@gmail.com>
# Maintainer: Jeff Pohlmeyer <yetanothergeek@gmail.com>
pkgname=jwm
pkgver=2.4.3
pkgrel=0
pkgdesc="A lightweight window manager for the X11 Window System"
options="!check" # No testsuite
url="http://joewing.net/projects/jwm/"
arch="all"
license="MIT"
makedepends="
	libjpeg-turbo-dev
	libpng-dev
	librsvg-dev
	libx11-dev
	libxext-dev
	libxft-dev
	libxinerama-dev
	libxmu-dev
	libxpm-dev
	libxrender-dev
	pango-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/joewing/jwm/releases/download/v$pkgver/jwm-$pkgver.tar.xz"

prepare() {
	default_prepare
	# not replaced for some reason..
	sed -i "s|@mkdir_p@|mkdir -p|g" \
		po/Makefile.in.in
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-rpath
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
35b8a6da9614f11881013aa77c36ee88ce9a213f056e797231b772132beb841d54094809b6a476383999bddeccf61451f72cd166309dd79c223b634cf5d1e69e  jwm-2.4.3.tar.xz
"
